import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: "/",
        component: () => import("../views/Index.vue")
    },
    {
        path: "/pack",
        component: () => import("../views/FilePack.vue")
    },
    {
        path: "/stock",
        component: () => import("../views/Stock.vue")
    },
    {
        path: "/list/:code",
        component: () => import("../views/List.vue")
    }

];
console.log(routes)

const router = new VueRouter({
    routes
})

export default router
